﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RecipeRecommender
{
    public partial class Form3 : Form
    {
        private Recipe cRecipeToAdapt;

        private RecipeQuery cRecipeQuery;
        public Form3(Recipe cCurrent, RecipeQuery cQuery)
        {
            cRecipeToAdapt = cCurrent;
            cRecipeQuery = cQuery;

            InitializeComponent();
        }

        private void Form3_Load(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form4 cForm4 = new Form4(cRecipeToAdapt, cRecipeQuery);
            cForm4.Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form4 cForm4 = new Form4(cRecipeToAdapt, cRecipeQuery);
            cForm4.AdaptIngredients();
            cForm4.Show();
        }
    }
}
